﻿using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;
namespace SmartApi.Utils.Serialize
{
    public class JsonSerialize : ISerialize
    {
        public T Deserialize<T>(string strVal)
        {
            return JsonConvert.DeserializeObject<T>(strVal);
        }

        public string Serialize(object target)
        {
            return JsonConvert.SerializeObject(target);
        }
    }
}
